<extend name="Common@Layout:default" />
<block name="head">
	<link href="__CSS__/plugins/sweetalert/sweetalert.css" rel="stylesheet">
	<script src="__JS__/plugins/sweetalert/sweetalert.min.js"></script>
</block>
<block name="body">
	
	<body class="gray-bg">
	    <div class="wrapper wrapper-content  animated fadeInRight">
	        <div class="row">
	            <div class="col-sm-12">
	                <div class="ibox ">
	                </div>
	            </div>
	        </div>
	    </div>
	    
	    <script>
			var jump_url = "{$jumpUrl}";
			var wait_time = "{$waitSecond}";
			wait_timer = wait_time>2?wait_time*1000:3*1000;
			var message = "{$error}";
			
	        $(document).ready(function(){
				swal(
					{
						title: message,   
//						text: '\<span style=\"color:red;\"\>' + wait_time + '\<\/span\>秒后自动返回！',   
						type:"error",
						timer: wait_timer,   
						showConfirmButton: true ,
						showCancelButton: false,
						confirmButtonText: "确定",
						confirmButtonColor:"#DD6B55",
						
					},function(isConfirm){
				
						if(jump_url){
								
							location.href = jump_url;
							
						}else{
							
							history.back(-1);
							
						}
					
					}
				);
			});
	    </script>
	</body>	
	
</block>